package pers.baiban.sqltoword.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 表信息
 */
@Data
@TableName("TABLES")
public class Tables implements Serializable {

    @TableId
    private String tableCatalog;

    /**
     * 表格所属的库
     */
    private String tableSchema;

    /**
     * 表名
     */
    private String tableName;

    private String tableType;

    private String engine;

    private Long version;

    private String rowFormat;

    private Long tableRows;

    private Long avgRowLength;

    private Long dataLength;

    private Long maxDataLength;

    private Long indexLength;

    private Long dataFree;

    private Long autoIncrement;

    private Date createTime;

    private Date updateTime;

    private Date checkTime;

    private String tableCollation;

    private Long checksum;

    private String createOptions;

    private String tableComment;

    /**
     * 列信息
     */
    @TableField(exist = false)
    private List<Columns> columns;
}